package com.info.zhiduoduo.weixin.controller;

import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.weixin.service.SystemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "系统接口")
@RestController
@RequestMapping("/sys")
public class SystemController {

	@Autowired
	SystemService systemService;

	@PostMapping("/queryRestraintTradeTime")
	@ApiOperation("查看系统限制交易的时间段")
	public SmartResult queryRestraintTradeTime() {
		return systemService.queryRestraintTradeTime();
	}

}
